import http from '../util/http';
import urlConcat from './url-concat';
import format from '../util/timer';
export default {
  async outWarehouseAdd(obj: any) {
    obj.outWarehouseTime = format(obj.outWarehouseTime) || '';
    const paramsUrl = urlConcat(`/outWarehouse/add`, obj);
    return http.post(paramsUrl);
  },
  async outWarehouseDel(ids: string) {
    const paramsUrl = urlConcat(`/outWarehouse/delete`, {
      ids,
    });
    return http.get(paramsUrl);
  },
  async outWarehouseList(obj: any) {
    obj.outWarehouseTime = format(obj.outWarehouseTime) || '';
    const paramsUrl = urlConcat(`/outWarehouse/selectListPage`, obj);
    return http.get(paramsUrl);
  },
  async outWarehouseUpdate(obj: any) {
    obj.outWarehouseTime = format(obj.outWarehouseTime) || '';
    const paramsUrl = urlConcat(`/outWarehouse/update`, obj);
    return http.post(paramsUrl);
  },
};
